package com.weike.wk_android;

import android.app.Application;
import android.os.Build;

import com.weike.wk_android.utils.AppLifecycleCallback;

public class AppBasic extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        // AppLifecycleCallback 实现 ActivityLifecycleCallbacks 接口方法
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
            this.registerActivityLifecycleCallbacks(new AppLifecycleCallback());
        }
    }
}
